package HuaRongDao;
//macos系统运行不可用：因无法获取图片和布局框，导致在mac系统不能游玩的bug，目前仅支持Windows和Linux系统游玩。

import Common.Game;

import javax.swing.*;
import java.awt.*;

public class GameClient extends JFrame implements Game {

    static GamePanel gamePanel;
    static HelpPanel helpPanel;
    static Container panel;//窗口容器

    public GameClient(){

        helpPanel = new HelpPanel(1);
        gamePanel = new GamePanel(1);//设置关卡
        gamePanel.setLayout(new BorderLayout());
        panel = this.getContentPane();
        panel.setLayout(new BorderLayout());
        panel.add(helpPanel,BorderLayout.EAST);
        panel.add(gamePanel,BorderLayout.CENTER);
        this.setSize(650,650);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setTitle("华容道");
        this.setVisible(true);
        this.setResizable(false);
    }


    public static void main(String[] args) {
        new GameClient();
    }

    @Override
    public void run() {
    }
}
